

void UI_LineOptions::setAction(PF_ActionInterface* a) {
    if (a!=NULL && a->rtti()==LX_Define::ActionDrawLine) {
        action = (WF_DrawLine*)a;
    } else {
        PF_DEBUG->print(PF_Debug::D_ERROR, 
			"UI_LineOptions::setAction: wrong action type");
        action = NULL;
    }
}

void UI_LineOptions::close() {
    if (action!=NULL) {
        action->close();
    }
}

void UI_LineOptions::undo() {
    if (action!=NULL) {
        action->undo();
    }
}
